<div id="main_content">
    <?php echo $this->element('frontend/left_menu'); ?>
    <div id="right_content">
           <div id="right_center">
                <div class="breadcrumb">
                    <ul>
                        <li>
                            <a href="<?php echo $this->Html->url("/")?>" class="brecr_home"> Trang chủ</a>
                        </li>
                        <li>
                            <a class="brecr_nomal"> Chương trình đào tạo</a>
                        </li>
                    </ul>
                </div>
                <br />
                <div class="content">
                    <h1 class="normal_title">Chương trình đào tạo</h1>
                    <div class="normal_content">
                    <?php if(!empty($trainings)) { 
                        for($i=0; $i<count($trainings)-1;$i++) { ?>
                        <div class="block_content">
                           <a href="<?php echo $this->Html->url("/tranning_programs/detail/".$trainings[$i]['TranningProgram']['id']);?>">
                                <img src="<?php echo $trainings[$i]['TranningProgram']['image']?>"/>
                                <span class="block_content_title"><?php echo h($trainings[$i]['TranningProgram']['title']);?></span>
                                <br />
                           </a>
                            Thời gian:<span class="block_special"><?php echo h($trainings[$i]['TranningProgram']['time']); ?></span>
                            <br />
                            Học phí:<span class="block_special"><?php echo number_format($trainings[$i]['TranningProgram']['cost']); ?> VNĐ</span>
                            <p><?php echo FunctionCommon::cropNumChar($trainings[$i]['TranningProgram']['content'],200); ?></p>
                        </div>
                        <?php if($i%2==1 && $i>0) { ?>
                        
                        <div class="border_line">&nbsp;</div>
                    <?php } }?>
                    <div class="block_content">
                           <a href="<?php echo $this->Html->url("/tranning_programs/detail/".$trainings[$i]['TranningProgram']['id']);?>">
                                <img src="<?php echo $trainings[$i]['TranningProgram']['image']?>"/>
                                <span class="block_content_title"><?php echo h($trainings[$i]['TranningProgram']['title']);?></span>
                                <br />
                           </a>
                            Thời gian:<span class="block_special"><?php echo h($trainings[$i]['TranningProgram']['time']); ?></span>
                            <br />
                            Học phí:<span class="block_special"><?php echo number_format($trainings[$i]['TranningProgram']['cost']); ?> VNĐ</span>
                            <p><?php echo FunctionCommon::cropNumChar($trainings[$i]['TranningProgram']['content'],200); ?></p>
                        </div>
                    
                    <?php }  ?>    
              
                    </div>
                </div>
                
            </div>
            <?php echo $this->element('frontend/footer'); ?>
           
    </div>
    
</div>